package com.saicmotor.databinding.handler;

import android.content.Context;
import android.view.View;
import android.widget.Toast;

/**
 * @Author xinxinzhang
 * @Date 2022/08/16
 **/
public class MyHandler {
    Context context;

    public MyHandler(Context context) {
        this.context = context;
    }

    public  void onClickToast(View view){
        Toast.makeText(context, "点击事件", Toast.LENGTH_SHORT).show();
    }

    public  boolean onLongClick(View view){
        Toast.makeText(context, "长按事件", Toast.LENGTH_SHORT).show();
        return true;
    }
}
